'use strict'

module.exports = app => {
  const { STRING, INTEGER, DATE} = app.Sequelize

  const MBanner = app.model.define('bannner', {
    id: { type: INTEGER, primaryKey: true, autoIncrement: true },
    user_id:STRING,
    title:STRING,
    img_url:STRING,
    target_url:STRING,
    start:DATE,
    end:DATE,
  })

  return MBanner
}